package com.registration.bean;


import org.w3c.dom.Text;

import java.util.Date;
import java.util.List;

public class DepartmentBean {
    //科室
    private Integer dept_id;//科室 ID（自增）
    private String  name;//科室名称（如：内科、外科）
    private Integer  parent_dept_id;//父科室 ID（自关联，用于二级科室，如内科→心内科）
    private String introduction;//科室简介
    private Integer   doctor_count;//医生数量
    private Integer   sort;//排序序号（展示顺序）
    private Integer  status;//状态（0 - 禁用，1 - 正常）
    private Date create_time;//记录创建时间
    private Date   update_time;//记录更新时间

    private List<DepartmentBean> children;

    public List<DepartmentBean> getChildren() {
        return children;
    }
    public void setChildren(List<DepartmentBean> children) {
        this.children = children;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParent_dept_id() {
        return parent_dept_id;
    }

    public void setParent_dept_id(Integer parent_dept_id) {
        this.parent_dept_id = parent_dept_id;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getDoctor_count() {
        return doctor_count;
    }

    public void setDoctor_count(Integer doctor_count) {
        this.doctor_count = doctor_count;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
    @Override
    public String toString() {
        return "DepartmentBean{" +
                "dept_id=" + dept_id +
                ", name='" + name + '\'' +
                ", parent_dept_id=" + parent_dept_id +
                ", introduction='" + introduction + '\'' +
                ", doctor_count=" + doctor_count +
                ", sort=" + sort +
                ", status=" + status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
